package io.afu.common.exception;


import io.afu.common.constant.ConstantEnum;
import io.afu.common.constant.SignEnum;

public class SignException extends Exception {

    private static final long serialVersionUID = 2342341341L;

    private Integer code;

    public SignException(){
        super();
    }

    public SignException(String message){
        super(message);
    }

    public SignException(String message, Integer code){
        super(message);
        this.code = code;
    }

    public SignException(ConstantEnum constantEnum){
        super(constantEnum.getMsg());
        this.code = constantEnum.getCode();
    }

    public SignException(SignEnum signEnum) {
        super();
    }

    public SignException(Throwable cause){
        super(cause);
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
